﻿using System;
using Microsoft.SPOT;
using GHIElectronics.NETMF.Hardware;
using Ascended.SPOT.Sensors.Distance;
using Microsoft.SPOT.Hardware;
using System.Threading;

namespace Ascended.SPOT.Tests
{
    public class Program
    {
        public static void Main()
        {
            using (UltrasonicSensor sensor = new MB1200((Cpu.Pin)AnalogIn.Pin.Ain0))
            {
                while (true)
                {
                    Debug.Print("Reading: " + sensor.GetDistance());
                    Thread.Sleep(1000);
                }
            }

        }

    }
}
